<template>
  <div class="container">
    <text class="big-title">示例</text>
    <a href="https://gitee.com/yubo725/WeexHandbook/raw/master/dist/example/new_page.js" class="jump-btn">
      <text class="jump-btn-text">Click to jump!</text>
    </a>
    <text class="big-title">文档</text>
    <div class="button" @click="showDoc"><text class="btn-text">点击查看文档</text></div>
  </div>
</template>

<style scoped>
.container {
  padding: 10px;
}
.big-title {
  color: black;
  font-size: 50px;
  font-weight: bold;
  margin-bottom: 20px;
  margin-top: 20px;
}
.jump-btn {
  border-radius: 10px;
  border-color: #6699FF;
  border-width: 1.8px;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
  margin-bottom: 100px;
}
.jump-btn:active {
  background-color: #EFEFEF;
}
.jump-btn-text {
  color: #6699FF;
  font-size: 35px;
}
.button {
  height: 60px;
  justify-content: center;
  opacity: 1.0;
}
.button:active {
  opacity: 0.6;
}
.btn-text {
  font-size: 30px;
  color: blue;
}
</style>

<script>
  import utils from '../utils.js';
  let modal = weex.requireModule('modal');
  let navigator = weex.requireModule('navigator');
  export default {
    methods: {
      showDoc() {
        navigator.push({
          url: utils.getDocDetailUrl(weex.config.bundleUrl),
          animated: true
        });
      }
    }
  }
</script>
